package com.glory.study.provider1.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.glory.study.testinterface.HelloService;
import com.glory.study.testinterface.PayInfo;
import com.glory.study.testinterface.PayResult;
import org.springframework.stereotype.Component;

@Service(
        version = "1.0.0",
        application = "${dubbo.application.id}",
        protocol = "${dubbo.protocol.id}",
        registry = "${dubbo.registry.id}",
        group = "pay2"
)
public class DefaultHello2Service implements HelloService {

    @Override
    public String sayHello(String name) {
        return name+"aaaaaaas";
    }

    @Override
    public PayResult pay(PayInfo pay) {
        PayResult result=new PayResult();
        result.setResult(true);
        result.setMsg("from pay2");
        return result;
    }
}
